<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>正则表达式</title>
</head>

<body>
	
</body>
<script>
	
	str='linux and php and LINUX and Php and pap and pbp nd pcp and linxx is lamp';
	arr=str.match(/lin[ux]x/ig); //中括号内部的任意一个字符
	alert(arr);
</script>
</html>